var store = require('store');
const USER_KEY = 'user_key'

const storageUtil = {
  saveUser(user) {
    store.set(USER_KEY, user)
  },

  getUser() {
    let user = store.get(USER_KEY)
    return user
  },

  removeUser() {
    store.remove(USER_KEY)
  },
};

export default storageUtil;
